$(document).ready(function(){
   if(sessionStorage.order){
    var order = JSON.parse(sessionStorage.order);

    $('#nickname').text(order.nickname);
    $('#order_sn').text(order.orde_sn);
    $('#pay_time').text(formateDate(order.pay_time));
    $('#pay_type').text(changepaytype(order.pay_type));
    $('#status').text(changestatus(order.status));




   }



})

function changestatus(a){
    if(a == 2){
        return "请尽快收款";
    }else if(a == 3){
        return "请尽快发货";
    }else if(a == 4){
        return "请尽快确认客户收货";
    }else if(a == 5){
        return "该比订单已完成";
    }
}
function changepaytype(a){
    if(a == 1){
        return "微信支付";
    }else if(a == 2){
        return "支付宝支付";
    }
}